package helloWorld;

public class Controller {
	// members
	private char currentLetter;
	private String currentArtist;
	private String currentAlbum;

	static private Controller instance;
	
	private Controller(){
		this.currentLetter = 'c';
	}
	
	static public Controller getInstance(){
		if(instance == null){
			instance = new Controller();
		}
		
		return instance;
	}
	
	public char getCurrentLetter() {
		return currentLetter;
	}

	public void setCurrentLetter(char currentLetter) {
		this.currentLetter = currentLetter;
	}

	public void setCurrentArtist(String name) {
		this.currentArtist = name;
	}
	
	public String getCurrentArtist(){
		return this.currentArtist;
	}
	
	public String getCurrentAlbum() {
		return currentAlbum;
	}

	public void setCurrentAlbum(String currentAlbum) {
		this.currentAlbum = currentAlbum;
	}
}
